--- 
    layout: base 
---

<style type="text/css" media="screen">
  h1 {
    margin: 30px 0;
    font-size: 4em;
    line-height: 1;
    letter-spacing: -1px;
  }
</style>

<div class="container">
  <div class="row">
    <div class="col-1">

    </div>
    <div class="col-10 code-404">
      <div class="hero-code">
          <div class="code-examples">
          <pre><code class="hljs java">
Uni&lt;String&gt; uni = pageRequested
  .onItem()
    .ifNull().fail(
        () -> new PageNotFound("Oh No! This page does not exist")
    )      
  .onFailure()
    .recoverWith(() -> "Click on one of the links there ^^");
          </code></pre>
          </div>
      </div>
    </div>
  </div>
</div>
